<template>
  <div id="eqpip" style="width:200px,height:300px;">
    <div>
      <span>出厂编码</span>
      <span>{{ ccbm }}</span>
    </div>
    <div @click="initData">
      <span>设备名称</span>
      <span>{{ name }}</span>
    </div>
  </div>
</template>

<script>
export default {
  name: "EquipView",
  props: {
    equipLocaed: {
      type: Object,
      default: () => {
        return {}
      }
    },
  },
  data() {
    return {
      ccbm: "",
      name: "",
    }
  },
  mounted() {
    this.initData()

  },

  methods: {
    initData() {
      console.log(this.equipLocaed.data)
      console.log(this.equipLocaed)
      this.ccbm = this.equipLocaed.data.ccbm
      this.name = this.equipLocaed.data.name

    }
  }
}
</script>

<style scoped>
#eqpip {
  z-index: 100001;
}
</style>
